package com.punch.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author zlt
 */

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author cyd
 * @since 2019-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_menu")
public class SysMenu extends SuperEntity<SysMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 父菜单id
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 父菜单名称
     */
    @TableField("parent_title")
    private String parentTitle;

    /**
     * 路由名称
     */
    @TableField("name")
    private String name;

    /**
     * 路由path
     */
    @TableField("path")
    private String path;


    /**
     * 文件路径
     */
    @TableField("component")
    private String component;

    /**
     * 标题
     */
    @TableField("title")
    private String title;


    /**
     * 图标
     */
    @TableField("icon")
    private String icon;

    /**
     * keepAlive
     */
    @TableField("keep_alive")
    private Integer keepAlive;


    /**
     * 所属应用0-PC,1-小程序
     */
    @TableField("application")
    private String application;

    /**
     * 菜单类型,0-目录,1-菜单,2-按钮
     */
    @TableField("type")
    private Integer type;

    /**
     * 菜单状态,0-隐藏 1-显示
     */
    @TableField("hidden")
    private Integer hidden;

    /**
     * 权限标识
     */
    @TableField("perms")
    private String perms;

    /**
     * 前端权限标识
     */
    @TableField("front_perms")
    private String frontPerms;


    /**
     * 直接子集数量,默认0
     */
    @TableField("child_number")
    private Integer childNumber;

    /**
     * 排序
     */
    @TableField("sort_by")
    private Integer sortBy;

}

